function Api(){
	
	var port = "";//":18083";
	var ucenterWebsite = "http://ucenter.ehaoyao.com" + port;
	var unescapeWrapper = window.decodeURIComponent || unescape;
	
	this.localUserLogin = ucenterWebsite + "/user/loginService.json";
	this.localIsbindPhone = ucenterWebsite + "/user/isBindph.json";
	this.localSendDyPassword = ucenterWebsite + "/send/loginPwCode.json";
	
	this.localUserRegister = ucenterWebsite + "/user/registerService.json";
	this.localSendRegisterCode = ucenterWebsite + "/send/regCode.json";
	this.localVerifyName = ucenterWebsite + "/user/verifyName.jsonp";
	this.localVerifyEmail = ucenterWebsite + "/user/verifyEmail.jsonp";
	
	//调用本系统订单接口
	this.localOrderList = ucenterWebsite+"/order/list.jsonp";
	this.localOrderDetail = ucenterWebsite+"/order/detail.jsonp";
	this.localOrderPhoneBind = ucenterWebsite + "/order/phone/bind.jsonp";
	this.localOrderPhoneUnBind = ucenterWebsite + "/order/phone/unbind.jsonp";
	this.localOrderImport = ucenterWebsite + "/order/import.jsonp";
	
	//调用本系统用户信息接口
	this.localUserInfoUpdate = ucenterWebsite+"/user/baseInfo/update.jsonp";
	this.localUserInfoCheck = ucenterWebsite+"/user/baseInfo/check.jsonp";
	this.localUserTagDelete = ucenterWebsite + "/user/tag/delete.jsonp";
	this.localUserTagAdd = ucenterWebsite + "/user/tag/add.jsonp";
	this.localVerifyPhone = ucenterWebsite + "/user/verifyPhone.jsonp";
	
	//调用标签信息接口
	this.localTagListByAgeAndSex = ucenterWebsite + "/tag/listByAgeAndSex.jsonp";
	
	//调用本系统收货地址接口
	this.localUserAddressDelete = ucenterWebsite+"/address/delete.jsonp";
	this.localUserAddressDefault = ucenterWebsite+"/address/default.jsonp";
	this.localUserAddressShow = ucenterWebsite+"/address/show.jsonp";
	this.localUserAddressMerge = ucenterWebsite+"/address/merge.jsonp";
	//调用本系统购物车接口
	this.localShoppingCartDelete = ucenterWebsite+"/shoppingCart/delete.jsonp";
	this.localShoppingCartSum = ucenterWebsite+"/shoppingCart/sum.jsonp";
	this.localShoppingCartPartialList = ucenterWebsite+"/shoppingCart/partialList.jsonp";
	//调用本系统用户收藏删除接口
	this.localFavoriteDelete = ucenterWebsite+"/favorite/delete.jsonp";
	//调用本系统用户收藏列表接口
	this.localFavoriteList = ucenterWebsite+"/favorite/list.jsonp";
	
	//调用本系统评价删除接口
	this.localEvaluateDelete = ucenterWebsite+"/evaluate/delete.jsonp";
	//调用本系统评价列表接口
	this.localEvaluateList = ucenterWebsite+"/evaluate/list.jsonp";
	
	//调用本系统地区信息接口
	this.localPostCodeShow = ucenterWebsite + "/postcode/show.jsonp";
	
	//调用用户行为用户浏览记录接口
	this.localBrowsingDelete = ucenterWebsite+"/browsing/delete.jsonp";
	this.localBrowsingList = ucenterWebsite+"/browsing/index.jsonp";
	
	//调用新闻接口
	this.localNewsList = ucenterWebsite+"/news/list.jsonp";
	
	//调用优惠劵接口
	this.localCouponList = ucenterWebsite+"/coupon/index.jsonp";
	this.localNewCouponList = ucenterWebsite+"/coupon/new.jsonp";
	
	this.localEmailBind = ucenterWebsite + "/user/email/bind.jsonp";
	this.localEmailUnBind = ucenterWebsite + "/user/email/unbind.jsonp";
	this.localPhoneBind = ucenterWebsite + "/user/phone/bind.jsonp";
	this.localPhoneUnBind = ucenterWebsite + "/user/phone/unbind.jsonp";
	
	//调用本系统通信接口
	this.localVerifySend = ucenterWebsite + "/verify/send.jsonp";
	this.localVerifyCheck = ucenterWebsite + "/verify/check.jsonp";
	
	//调用商城系统接口
	this.mallXXXX = "";
	
	//头像上传接口
	this.localImageUpload = ucenterWebsite + "/user/images/upload.jsonp";
	
	//家庭成员接口
	this.localUserFamilyUpdate = ucenterWebsite+"/familyMember/update.jsonp";
	this.localUserFamilyDelete = ucenterWebsite+"/familyMember/delete.jsonp";
	this.localUserFamilyAdd = ucenterWebsite+"/familyMember/add.jsonp";
	this.localUserFamilyList = ucenterWebsite+"/familyMember/list.jsonp";
	
	//推荐商品
	this.localGoodsList = ucenterWebsite+"/goods/list.jsonp";
	
	//任务成就
	this.localSingleTaskProgress = ucenterWebsite + "/flow/singleTaskProgress.json";
	this.localTaskFinish = ucenterWebsite+"/task/finish.jsonp";
	
	//积分商城
	this.localIntegralCouponList = ucenterWebsite + "/integral/coupon/list.json";
	this.localIntegralInsuranceList = ucenterWebsite + "/integral/insurance/list.json";
	this.localIntegralExchangeCoupon = ucenterWebsite + "/integral/exchange/coupon.json";
	this.localIntegralExchangeCdkey = ucenterWebsite + "/integral/exchange/cdkey.json";
	
	//站内短信
	this.localMessageDmList = ucenterWebsite + "/messageDm/list.jsonp";
	this.localMessageDmRead = ucenterWebsite + "/messageDm/read.jsonp";
	this.localMessageDmUpdate = ucenterWebsite + "/messageDm/update.jsonp";
	
	//投保
	this.localInsuranceRecordAdd = ucenterWebsite + "/insurance/record/add.jsonp";
	
	/**
	 * 合并两个参数串
	 */
	var combine = function (destination, source) { 
	    for (var property in source) {
	    	destination[property] = source[property]; 
	    }
	    return destination;
	};
	
	this.getCookie = function (cookieName) {
		var cookiePattern = new RegExp(
				'(^|;)[ ]*' + cookieName + '=([^;]*)');

		var cookieMatch = cookiePattern.exec(document.cookie);

		return cookieMatch ? unescapeWrapper(cookieMatch[2]) : 0;
	};
	var ajaxCall = function(apiUrl , params , callback , method){
		var verifyCode = (new Api()).getCookie("verify");
		var newParam = combine(params,{"verify": verifyCode});
		$.ajax({
			type : "get",//method?method:"get",
			async : false,
			url : apiUrl,
			data :newParam,
			dataType : 'jsonp',
			jsonp : 'callback',
			contentType : 'application/x-www-form-urlencoded',
			scriptCharset : 'utf-8',
			success : function(json) {
				callback(json);
			}
		});
	};
	
	var ajaxCallForJson = function(apiUrl , params , callback , method){
		var verifyCode = (new Api()).getCookie("verify");
		var newParam;
		if(verifyCode != 0 || verifyCode != '0') {
			newParam = combine(params,{"verify": verifyCode});
		} else {
			newParam = params;
		}
		$.ajax({
			type : method?method:"get",
			async : false,
			url : apiUrl,
			data :newParam,
			dataType : 'json',
			contentType : 'application/x-www-form-urlencoded',
			scriptCharset : 'utf-8',
			success : function(json) {
				callback(json);
			}
		});
	};
	
	/**
	 * 调用ucenter.ehaoyao.com的url
	 */
	this.localAjax = function(apiUrl , params , callback , method) {
		ajaxCall(apiUrl , params, callback , method);
	};
	
	this.localAjaxForJson = function(apiUrl, params, callback, method) {
		ajaxCallForJson(apiUrl , params, callback , method);
	};
	
}